package com.aaa.pr;

import com.aaa.pr.config.RibbonConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * @author ：杨
 * @date ：Created in 2020/7/24 15:09
 * @description：
 * @modified By：
 * @version:
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableCircuitBreaker
@RibbonClient(name = "productService",configuration = RibbonConfig.class)
@MapperScan("com.aaa.pr.dao")
public class proApp {
    public static void main(String[] args) {
        SpringApplication.run(proApp.class,args);
    }
}
